<template>
  <view >
    <view class="top_stat">
      <AtGrid :data=dataList :onClick="goTo"/>
    </view>
  </view>
</template>

<script>
import './user.module.scss'
import Taro from '@tarojs/taro'
export default {
  name: 'user',
  data(){
    return{
      dataList:[
      {
        image: 'https://img12.360buyimg.com/jdphoto/s72x72_jfs/t6160/14/2008729947/2754/7d512a86/595c3aeeNa89ddf71.png',
        value: '门店管理',
        path: "list"
      },
      {
        image: 'https://img20.360buyimg.com/jdphoto/s72x72_jfs/t15151/308/1012305375/2300/536ee6ef/5a411466N040a074b.png',
        value: '员工管理',
        path: "list"
      },
      {
        image: 'https://img10.360buyimg.com/jdphoto/s72x72_jfs/t5872/209/5240187906/2872/8fa98cd/595c3b2aN4155b931.png',
        value: '角色管理',
        path: "list"
      },
      {
        image: 'https://img14.360buyimg.com/jdphoto/s72x72_jfs/t17251/336/1311038817/3177/72595a07/5ac44618Na1db7b09.png',
        value: '排班设置',
        path: "list"
      },
      {
        image: 'https://img30.360buyimg.com/jdphoto/s72x72_jfs/t5770/97/5184449507/2423/294d5f95/595c3b4dNbc6bc95d.png',
        value: '交班记录',
        path: "list"
      },
      {
        image: 'https://img30.360buyimg.com/jdphoto/s72x72_jfs/t5770/97/5184449507/2423/294d5f95/595c3b4dNbc6bc95d.png',
        value: '员工提成',
        path: "list"
      }
    ],
    slideButtons: [
        {
          text: '普通',
          src: '/page/weui/cell/icon_love.svg', // icon的路径
        },{
          text: '普通',
          extClass: 'test',
          src: '/page/weui/cell/icon_star.svg', // icon的路径
        },{
          type: 'warn',
          text: '警示',
          extClass: 'test',
            src: '/page/weui/cell/icon_del.svg', // icon的路径
        }
    ],
    }
  },
  methods: {
    changeContent(a){
      console.log("数据", a);
    },
    goTo(item){
      Taro.navigateTo({
        url: "/pages/shop/store/list"
      })
      console.log("数据", item.path)
    },
    // slideButtonTap(e) {
    //     console.log('slide button tap', e.detail)
    // }
  }
}

</script>
